import http from '@/plugins/axios'

/**
 * 获取客户列表
 * @param data 
 * @returns 
 */
export function getCustomerList(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/customer/getCustomerList',
    data
  })
}

/**
 * 
 * @param data 新增客户
 * @returns 
 */
export function addCustomerAndShop(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/customer/addCustomerAndShop',
    data
  })
}

/**
 * 
 * @param data 编辑客户
 * @returns 
 */
export function editCustomerAndShop(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/customer/editCustomerAndShop',
    data
  })
}

/**
 * 
 * @param data 查询咨询记录集合,咨询记录下拉框
 * @returns 
 */
export function getConsultationListByCustomerView(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/consultation/records/getConsultationListByCustomerView',
    data
  })
}

/**
 * 
 * @param data 根据咨询记录ID查询咨询记录信息
 * @returns 
 */
export function getConsultationInfoById(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/consultation/records/getConsultationInfoById',
    data
  })
}

/**
 * 查询业务对接人
 * @returns 
 */
export function getUserListByRoleId(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/customer/getUserListByRoleId',
    data
  })
}


/**
 * 
 * @param data 根据客户ID查询客户信息及店铺数据
 * @returns 
 */
export function getCustomerAndShopByCustomerId(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/customer/getCustomerAndShopByCustomerId',
    data
  })
}

/**
 * 
 * @param data 查询用户表数据
 * @returns 
 */
export function getUserInfo(data) {
  return http({
    method: 'POST',
    url: '/sys/user/info',
    data
  })
}

/**
 * 
 * @param data 新增客户发票
 * @returns 
 */
export function addCustomerFpInfo(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/customer/addCustomerFpInfo',
    data
  })
}

/**
 * 
 * @param data 根据客户ID查询发票数据
 * @returns 
 */
export function getFpListByCustomerId(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/customer/getFpListByCustomerId',
    data
  })
}